package com.coffee.admin.api.platform.service;

import com.coffee.admin.api.platform.query.PlatformRoleRelationQuery;
import com.coffee.admin.api.platform.result.PlatformRoleRelationResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface PlatformRoleRelationService {

	Page<PlatformRoleRelationResult> getPager(PlatformRoleRelationQuery param, PagerInfo pr);
	
	Integer count(PlatformRoleRelationQuery param);
	
	PlatformRoleRelationResult getDetail(Integer id);
	
	List<PlatformRoleRelationResult> getList(PlatformRoleRelationQuery param, PagerInfo pr);
	
	List<PlatformRoleRelationResult> getList(PlatformRoleRelationQuery param);
	
	List<PlatformRoleRelationResult> getList();

	void delete(Integer id);

	void addOrUpdate(PlatformRoleRelationResult result)throws BusinessException;
	
	Map<Integer,PlatformRoleRelationResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,PlatformRoleRelationResult> getItemMap();
	
}